// pages/subSuccess/succSuccess.js
Page({
  data: {
    type:"",
    price:0,
    phone:"",
    cardId:""
  },
  onLoad: function (options) {
    console.log(options)
    this.data.phone = options.phone
    this.data.cardId = options.cardId
    let type = ""
    if (options.type == 1) {
      type = "父母卡"
    }
    if (options.type == 2) {
      type = "伴侣卡"
    }
    if (options.type == 3) {
      type = "子女卡"
    }
    this.setData({
      type: type,
      price: options.payLimit
    })
  },
  onShareAppMessage: function () {
    return {
      title: '我送了你张卡',
      imageUrl:"/static/share.png",
      path: '/pages/index/index',
      success: function (res) { }
    }

  },
  onUnload(){
    // wx.navigateTo({
    //   url: '/pages/webView/webview?url=' + getApp().globalData.url + 'SubCardBox&cardId=' + this.data.cardId + '&phone=' + this.data.phone,
    // })
  }

})